package com.lh.controller;


import com.lh.Service.CartService;
import com.lh.bean.Cart;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/cart")
public class CartController {
    private CartService cartService;


    @RequestMapping("/AllCartList")
    @ResponseBody
    public List<Cart> queryCartList(){
       return cartService.queryCartList();

    }


}
